// ignore_for_file: constant_identifier_names, non_constant_identifier_names

import 'dart:convert';

import 'package:crypto/crypto.dart';

import '../hj_model/home/home_tabs_entity.dart';
import '../hj_model/splash/announcement_entity.dart';
import '../hj_model/splash/domain_source_model.dart';

class Config {
  static const APPNAME = 'Tiktok';
  static const naticeChannel = 'com.yinse/device'; //原生通道
  static const innerVersion = '1.0.0'; //note-this:请保持pubspec.yaml一致，header里面，服务器返回,更新使用
  static const DEBUG = true;
  static String deviceId = ''; //唯一设备码

  static String PASS_WORD_KEY = 'password_key';

  static int adsTimeLongVideo = 0; //视频广告时长

  static bool? gameActivityPopUp;

  /// ios tf 的内部包名
  /// note_this:不要修改这个值
  static const IOS_TF_BUNDLE_ID = "yinse_opera";

  static String? aiUndressPrice; //脱衣价格价格
  static String? aiChangeFaceImgPrice; //换脸和手动脱衣价格
  static List<UserAward> userAwards = [];
  static String? darkWebVipName;
  static String? darkWebVipId;
  static List<String>? recommendVipIds;

  ///加密密钥
  static String get encryptKey => "vEukA&w15z4VAD3kAY#fkL#rBnU!WDhN";

  ///防重放攻击密钥
  static const ANTI_REPLAY_ATTACK_KEY = "kaFtkDJRcchRMTI9";

  ///本地线路配置
  static List<String> LINE_LIST = DEBUG
      ? [
          'https://tiktokcrbht.cestalt.com',
        ]
      : [
          'https://dcbq5bzkxtk8q.cloudfront.net',
          'https://d1orururfggatt.cloudfront.net',
          'https://7yhgyt.com',
        ];

  ///默认高斯模糊的值
  static get GAUSS_VALUE => 80;

  /// 获取加密后的设备id验签
  static String getDevToken(String devId) {
    String a = "g24p5VJ4fJ";
    String b = "5P#at%Yu";
    String c = "ZPRwQuKl8YlVIr";
    String s = a + b + c + devId + a + b + c;
    var data = utf8.encode(s);
    var chiper = sha256.convert(data);
    return base64Encode(chiper.bytes);
  }

  static String? imei;
  static String? macAddress;

  static Map<String, bool>? followVideos = {};
  static Map<String, bool>? likeVideos = {};

  static String? dataBuriedPoint = "";

  static String? activeUrl = ""; //活动配置url

  static int sendMsgPrice = 0;

  static List<CheckVersionInfo> ver = []; //是否有新版本

  static HomePlateModel? plateModule; //亚模块数据
  static List<SystemConfig>? systemConfigs = [];
  static List<JGAreaModel>? jgArea; //金刚区
  static List<AnnounceInfoBean> wordAdsBeans = []; //公告

  static List<MarqueeModel>? allMarquee; //新版跑马灯数据

  static bool storeIsOpen = false; //商店模块开关

  static List<String> hotSearchTerms = []; // 搜索热门词;
  static ProxyBannerJump? proxyBannerJump;
}
